package com.a.b.c.d.e.controller;

import com.a.b.c.d.e.entities.User;
import com.a.b.c.d.e.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created on 2021/12/23.
 *
 * @author yanshuchun
 */

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService userService;
    @GetMapping("/getAllUser")
    public List<User> getAll(){
        return userService.getAll();
    }
}
